package cn.gson.crm.model.pojo;

public class CustomerResult {
	private boolean success;
	private String message;
	
	public CustomerResult() {
		this.success = true;
	}

	public CustomerResult(boolean success) {
		super();
		this.success = success;
	}

	public CustomerResult(String message) {
		super();
		this.success = false;
		this.message = message;
	}
	
	public CustomerResult(Exception e) {
		this(e.getMessage());
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
